Socket
Socket
Sign inDemoInstall

pug-linker

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-linker

Link multiple pug ASTs together using include/extends


Version published
Weekly downloads
1.5M
decreased by-4.28%
Maintainers
3
Weekly downloads
 
Created

What is pug-linker?

The pug-linker npm package is a part of the Pug templating engine ecosystem. It is used internally by Pug to link together the abstract syntax tree (AST) nodes generated by the Pug parser. This linking process is essential for transforming the parsed Pug code into a format that can be compiled into HTML.

What are pug-linker's main functionalities?

Linking AST Nodes

This feature allows you to link the AST nodes generated by the Pug parser. The `pugLinker` function takes an AST as input and returns a linked AST, which is ready for further compilation into HTML.

const pugLinker = require('pug-linker');
const ast = /* some AST generated by pug-parser */;
const linkedAst = pugLinker(ast);

Other packages similar to pug-linker

Keywords

FAQs

Package last updated on 25 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc